package com.ddatsh.transaction.core.exception;

/**
 * Service层最终异常，异常堆栈信息不再接收，仅用于processunit调用时获取errorCode,errorMsg
 * 
 * @author ddatsh
 * 
 */
public class ServiceException extends RuntimeException {
	private String errorCode;
	private String errorMsg;

	private static final long serialVersionUID = 2191369512546915628L;

	public ServiceException(String errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}
}
